<?php

namespace app\constants;
/**
 * 响应码
 * Class ResponseCode
 * @package app\constants
 */
class ServiceStatus
{
    const  SUCCESS = [
        "CODE" => 0,
        "MESSAGE" => "请求成功"
    ];
    const  FAILED = [
        "CODE" => 1,
        "MESSAGE" => "请求失败"
    ];
    const TOKEN_SIGNATURE_INVALID = [
        "CODE" => 1001,
        "MESSAGE" => "token验证签名不正确"
    ];
    const TOKEN_BEFORE_VALID = [
        "CODE" => 1002,
        "MESSAGE" => "token验证无效"
    ];
    const TOKEN_EXPIRED = [
        "CODE" => 1003,
        "MESSAGE" => "token验证已过期"
    ];
    const TOKEN_EXCEPTION = [
        "CODE" => 1004,
        "MESSAGE" => "token验证发生错误"
    ];
    const WX_PHONE_ERR = [
        "CODE" => 1005,
        "MESSAGE" => "微信手机号获取失败"
    ];
    const SMS_VALIDATE_ERR = [
        "CODE" => 1006,
        "MESSAGE" => "验证码验证失败"
    ];
    const SMS_VALIDATE_EXPIRE = [
        "CODE" => 1007,
        "MESSAGE" => "验证码过期，请重新发送"
    ];
    const DECRYPT_FAILED = [
        "CODE" => 1101,
        "MESSAGE" => "数据解密失败"
    ];
    const WX_LOGIN_SUCCESS = [
        "CODE" => 1200,
        "MESSAGE" => "登录凭证校检成功"
    ];
    const WX_LOGIN_FAILED = [
        "CODE" => 1201,
        "MESSAGE" => "登录凭证校检失败"
    ];
    const WX_LOGIN_EXCEPTION = [
        "CODE" => 1202,
        "MESSAGE" => "登录凭证校检异常"
    ];
    const ERROR_URL = [
        "CODE" => 9998,
        "MESSAGE" => "url地址不正确"
    ];
    const EXCEPTION = [
        "CODE" => 9999,
        "MESSAGE" => "try发生异常"
    ];
}